CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(.)

include_directories(${DIR_FFMPEG}/include)
include_directories(${THIRD_PARTY}/sqlite/include)
include_directories(${THIRD_PARTY}/jsoncpp-1.8.4/include)

if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${COMN_DIR}/lib)
link_directories(${PROJECT_ROOT}/lib)
link_directories(${THIRD_PARTY}/sqlite/lib)

include_directories(${PROJECT_ROOT}/http)


aux_source_directory(. SOURCES)

add_library(ImageWatcher SHARED ${SOURCES})

target_link_libraries(ImageWatcher
	${LIB_PLATFORM}
	debug comnd optimized comn
	sqlite3
	debug jsoncppd optimized jsoncpp
	debug httpd optimized http
	)

set_target_properties(ImageWatcher PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(ImageWatcher PROPERTIES INTERFACE_LINK_LIBRARIES "")

install(TARGETS ImageWatcher DESTINATION .)
